package cocom.iplatform.piaoerbai.service.impl;

import cocom.iplatform.piaoerbai.bean.BasicDataBean;
import cocom.iplatform.piaoerbai.dao.BasicDataBeanDao;
import cocom.iplatform.piaoerbai.service.BasicDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BasicDataServiceImpl implements BasicDataService {

    @Resource
    private BasicDataBeanDao basicDataBeanDao;

    @Override
    public int addBasicData(BasicDataBean basicDataBean) {
        return basicDataBeanDao.addBasicData(basicDataBean);
    }

    @Override
    public int deleteBasicDataById(int id) {
        return basicDataBeanDao.deleteBasicDataById(id);
    }

    @Override
    public int updateBasicData(BasicDataBean basicDataBean) {
        return basicDataBeanDao.updateBasicData(basicDataBean);
    }

    @Override
    public List<BasicDataBean> getAllBasicData() {
        return basicDataBeanDao.getAllBasicData();
    }

    @Override
    public BasicDataBean getBasicDataById(int id) {
        return basicDataBeanDao.getBasicDataById(id);
    }
}
